<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta http-equiv="X-UA-Compatible" content="IE=7"/>
        <link rel="stylesheet" type="text/css" href="css/reset.css" />
        <link rel="stylesheet" type="text/css" href="css/myresume.css" />
    </head>
    <body>
        <div id="interactive-box" class="dialog" style="min-width: 770px; z-index: 99999; left: 247px; top: 623px; width: auto;">
            <div class="top"><div class="corner"></div></div>
            <div class="body"><div class="client">
                    <form method="post" action="?c=MyResume&a=LanguageAdd" onsubmit="return Zvalidator.checkForm(this)">
                        <input type="hidden" value="<?= $uid ?>" name="userid">
                        <input type="hidden" value="<?=$id?>"name="id" />
                        <input type="hidden" value="" name="langGrades" id="resume-lanuage-exam-hidden">
                        <table width="100%" class="form" id="resume-lanuage-dialog-form-table">
                            <colgroup><col width="100">
                                <col width="12">
                                <col width="*">
                            </colgroup><tbody><tr>
                                    <td class="label">语言:</td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <select style="width:100px" name="lang" id="languagename-select" validator="require">
                                            <option value="">请选择</option>
                                            <?php
                                                if(!empty($list) && is_array($list)){
                                                    foreach ($list as $classid=>$classname){
                                                        if($dataInfo['lang'] == $classid){
                                                            echo '<option value="'.$classid.'" selected>'.$classname.'</option>';
                                                        }else{
                                                            echo '<option value="'.$classid.'">'.$classname.'</option>';
                                                        }
                                                    }
                                                }
                                            ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">听说: </td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <select name="oral" style="width:100px" id="oral-select" validator="require">
                                            <option value="">请选择</option>
                                            <?php
                                                if(!empty($state) && is_array($state)){
                                                    foreach ($state as $statekey => $stateval){
                                                        if($dataInfo['oral'] == $statekey){
                                                            echo '<option value="'.$statekey.'" selected>'.$stateval.'</option>';
                                                        }else{
                                                            echo '<option value="'.$statekey.'">'.$stateval.'</option>';
                                                        }
                                                    }
                                                }
                                            ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">读写: </td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <select name="rw" style="width:100px" id="rw-select" validator="require">
                                            <option value="">请选择</option>
                                            <?php
                                                if(!empty($state) && is_array($state)){
                                                    foreach ($state as $statekey => $stateval){
                                                        if($dataInfo['rw'] == $statekey){
                                                            echo '<option value="'.$statekey.'" selected>'.$stateval.'</option>';
                                                        }else{
                                                            echo '<option value="'.$statekey.'">'.$stateval.'</option>';
                                                        }
                                                    }
                                                }
                                            ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr style="display:none;" class="exam">
                                    <td class="label"></td>
                                    <td></td>
                                    <td class="input">
                                        <select name="grade" style="width:150px" class="exam-select">
                                            <option>请选择</option>
                                        </select>
                                        <input type="text" name="score" maxlength="5" class="text score g9" style="width:60px"> 分 <a class="removeme" href="javascript:void(0);">删除</a>
                                    </td>
                                </tr>
                                <tr class="exam">
                                    <td class="label">等级考试:</td>
                                    <td></td>
                                    <td class="input">
                                        <div class="list">
                                            <select name="grade[]" style="width:150px" class="exam-select">
                                                <option value="">请选择</option>
						<?php
							if(!empty($subclasslist)){
								foreach($subclasslist as $info){
									$sid = $info['subclassid'];
									$subclassname = $info['name'];
									if($sid == $subclassid){
										echo '<option value="'.$sid.'" selected>'.$subclassname.'</option>';
									}else{
										echo '<option value="'.$sid.'">'.$subclassname.'</option>';
									}
								}
							}
						?>
                                            </select>
                                            <input type="text" maxlength="5" name="score[]" class="text score g9" style="width:60px" value="<?=$gradescore?>" /> <label>分</label>
                                        </div>
                                    </td>
                                </tr>
                                <tr><td></td><td></td><td><a id="addexam-link" class="icon add" href="javascript:void(0);">添加一项等级考试</a></td></tr>
                            </tbody></table>


                        <div class="error">&nbsp;</div>
                        <div class="inputdiv_btn">
                            <button class="big-default" type="submit"><span><span>确定</span></span></button>
                            <button type="button" class="normal" onclick="self.parent.tb_remove()"><span><span>取消</span></span></button>
                        </div>
                        <div class="bottom"><div class="corner"></div></div>
                    </form>
                </div>
            </div>
        </div>
        <script language="javascript" src="js/jquery.js"></script>
        <script language="javascript" src="js/validator.js"></script>
        <script language="javascript" src="js/language.js"></script>
        <script language="javascript" src="js/jquery.cascade.js"></script>
        <script language="javascript" src="js/jquery.cascade.ext.js"></script>
        <script language="javascript">
        $(".exam-select").cascade("#languagename-select",{
                ajax: {url: '?c=Ajax&a=SelectRel&modId=2' }
        });
         </script>
        <script>
            Zvalidator.init();
        </script>
    </body>
</html>
